<?php
class Baigiang_c extends CI_Controller {
	public $data;
	public function __construct()
	{
		parent::__construct();
        $this->load->model(array('m_baigiang','m_nganh','m_khoahoc','m_table','m_nganh'));
        $this->load->helper('url');
        $this->load->helper('form');
        $this->data['baigiang']=true;
		$this->data = array (
			'nganh'       => $this->m_nganh->get_nganh()
		);
	}
    public function baigiang($id){
        $id = $this->uri->segment(3);
        $this->data['baigiang']= $this->m_baigiang->get_select_baigiang($id);
        $this->load->view('v_baigiang',$this->data);
    }
    public function mon(){ 
        $this->load->view('v_mon',$this->data);
        $id = $this->uri->segment(3);
        $this->data['baigiang']= $this->m_baigiang->select_mon1($id);
       
    }
 }